jQuery(document).ready(function($) {
	// Stuff to do as soon as the DOM is ready. Use $() w/o colliding with other
	// libs;
	jQuery('.slider').nivoSlider({
		effect : 'random', // Specify sets like: 'fold,fade,sliceDown'
		slices : 15, // For slice animations
		boxCols : 8, // For box animations
		boxRows : 4, // For box animations
		animSpeed : 500, // Slide transition speed
		pauseTime : 3000, // How long each slide will show
		startSlide : 0, // Set starting Slide (0 index)
		directionNav : true, // Next & Prev navigation
		directionNavHide : true, // Only show on hover
		controlNav : true, // 1,2,3... navigation
		controlNavThumbs : false, // Use thumbnails for Control Nav
		pauseOnHover : false, // Stop animation while hovering
		manualAdvance : false, // Force manual transitions
		prevText : 'Prev', // Prev directionNav text
		nextText : 'Next', // Next directionNav text
		randomStart : false
	// Start on a random slide
	});

	$('#listArt').tinycarousel({
		start : 1,
		display : 1,
		axis : 'x',
		controls : true,
		intervaltime : 500,
		animation : true,
		callback : function(element, index) {
			console.log(element, index);
		}
	});
	$('#listArt2').tinycarousel({
		start : 1,
		display : 1,
		axis : 'x',
		controls : true,
		intervaltime : 500,
		animation : true,
		callback : function(element, index) {
			console.log(element, index);
		}
	});
	$(".ajaxCall").colorbox({
		width : "930px",
		height : "650px"
	});

	$(".ajaxCall2").colorbox({
		width : "1050px",
		height : "350px"
	});

	$(".ajaxCall3").colorbox({
		width : "850px",
		height : "620px"
	});

	$("#submenu").css('display', 'none')
	$(".menuClick").toggle(function() {
		$("#submenu").show('fast');
	}, function() {
		$("#submenu").hide('fast');
	});

	// Postition

	

	function nav(id,y){
		var sup = $("#"+id);
		sup.css({
			right : 0,
			bottom : y
		});
	}
	
	nav("support", 15);
	nav("commit", 120);
	nav("black_list", 225);
	

});
